package com.ruoyi.system.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ruoyi.common.core.domain.YhMp;
import com.ruoyi.common.core.domain.entity.YhMember;
import com.ruoyi.common.core.domain.entity.YhOrder;
import com.ruoyi.common.core.domain.entity.vo.YhOrderVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 支付日志 业务层
 *
 * @author Chopper
 * @since 2020-12-19 09:25
 */
public interface YhMpMapper extends BaseMapper<YhMp> {

    public YhMp getYhMpSetting();

    @Select("SELECT m1.*, m2.nick_name as parent_nick_name FROM yh_member m1 " +
            "LEFT JOIN yh_member m2 on m1.parent_id = m2.id ${ew.customSqlSegment}")
    List<YhMember> listByAdmin(@Param(Constants.WRAPPER) QueryWrapper<YhMember> queryWrapper);
}